//
//  ViewController.m
//  Meituan_OC
//
//  Created by Tony on 16/9/24.
//  Copyright © 2016年 Tony. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    NSLog(@"Hello Meituan!");
    
    [self setupUI];
}

#pragma markl - setupUI
-(void) setupUI {
    //
    
    [self showLaunchScreen];
}





- (void) showLaunchScreen {
    
    UIStoryboard * sb = [UIStoryboard storyboardWithName:@"LaunchScreen" bundle:nil];
    
    UIViewController * vc = [sb instantiateInitialViewController];
    
    UIView * launchV = vc.view;
    
    [self.view addSubview:launchV];
    
    [UIView animateWithDuration:2.0 animations:^{
        //
        launchV.transform = CGAffineTransformMakeScale(3.0, 3.0);
        launchV.alpha = 0;
        
    } completion:^(BOOL finished) {
        //
        [launchV removeFromSuperview];
    }];
    
}

























@end
